const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  name: state => state.user.userInfo.username,
  staffPhoto: state => state.user.userInfo.staffPhoto
}
// this.$sotre.state.token
// ...mapGetters
// vue组件获取app.js state
// this.$store.app.state.sidebar
// this.$store.getter.sidebar

// const getters = {
// 普通函数的写法
// sidebar: function(state) {
//   return state.app.sidebar
// }
// sidebar: (state) => {
//   return state.app.sidebar
// }
// sidebar: state => state.app.sidebar
// }
export default getters
